<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>异步请求案例</title>
    <script src="js/vue.js"></script>
    <script src="js/axios-0.18.0.js"></script>

</head>
<body>
    <div id="div">
        <h1>登录页面</h1>
    
        <input type="text" name="username" placeholder="请输入用户名" v-model="user.username"> <br>
        <input type="password" name="password" placeholder="请输入密码" v-model="user.password"><br>
        <button @click="send()">登录</button>
    
    
        <h1>主页: 显示好友列表</h1>
        <ul>
            <li v-for="element of list">
                {{element.name}}
            </li>
        </ul>
    </div>

</body>
<script>
    new Vue({
        el:"#div",
        data:{
            user:{},
            list:[]
        },
        methods:{
           send : function () {
               
           }
        }
    });
</script>
</html>